package test.day12.test15;

class Animal {
    private int m = 100;
    public int setM(){
       return m;
    }
}
class Dog extends Animal{
    int m = 65;
    public int getM(){
       return m;
    }
}
public class E {
    public static void main(String args[]){
       Dog dog = new Dog();
       System.out.printf("%d:%d",dog.setM(),dog.getM());//【代码】100:65
       
    }
}

